package com.example.demo.nuoqi.service;

import com.example.demo.nuoqi.pojo.Myapplication;
import com.github.pagehelper.PageInfo;

import java.util.List;

/****
 * @Author:shenkunlin
 * @Description:Myapplication业务层接口
 * @Date 2019/6/14 0:16
 *****/
public interface MyapplicationService {

    /***
     * Myapplication多条件分页查询
     * @param myapplication
     * @param page
     * @param size
     * @return
     */
    PageInfo<Myapplication> findPage(Myapplication myapplication, int page, int size);

    /***
     * Myapplication分页查询
     * @param page
     * @param size
     * @return
     */
    PageInfo<Myapplication> findPage(int page, int size);

    /***
     * Myapplication多条件搜索方法
     * @param myapplication
     * @return
     */
    List<Myapplication> findList(Myapplication myapplication);

    /***
     * 删除Myapplication
     * @param id
     */
    void delete(Integer id);

    /***
     * 修改Myapplication数据
     * @param myapplication
     */
    void update(Myapplication myapplication);

    /***
     * 新增Myapplication
     * @param myapplication
     */
    void add(Myapplication myapplication);

    /**
     * 根据ID查询Myapplication
     * @param id
     * @return
     */
     Myapplication findById(Integer id);

    /***
     * 查询所有Myapplication
     * @return
     */
    List<Myapplication> findAll();
}
